package com.jiepu.daily.corejava.advanceed.part7io.day0806;


import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

/**
 * @Description:
 * @author: xinjie
 * @date: 2020/8/6  17:04
 */
public class IODemo3 {
	public static void main(String[] args) throws IOException {
		String path = "src/com/jiepu/daily/advanceed/part7_io/io_test/demo3.txt";

		InputStream inputStream = new FileInputStream(path);
		byte[] buff = new byte[10];
		int len = -1;
		while ((len = inputStream.read(buff)) != -1) {
			System.out.println(new String(buff,0,len));

		}
	}
}
